package ldu.guofeng.imdemo.activity;

import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RelativeLayout;
import android.widget.TextView;

import ldu.guofeng.imdemo.R;
import ldu.guofeng.imdemo.fragment.SessionFragment;
import ldu.guofeng.imdemo.im.LoginAsyncTask;
import ldu.guofeng.imdemo.util.PreferencesUtils;
import ldu.guofeng.imdemo.util.ToastUtils;
import ldu.guofeng.imdemo.view.CustomIndexToolbar;


/**
 */

public class PartyChatActivity extends android.app.Activity {
    private CustomIndexToolbar mToolbar;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_partychat);
        init();
    }
    private void init() {
        //添加好友点击监听
        mToolbar = (CustomIndexToolbar) findViewById(R.id.title_bar);
        mToolbar.setRightButtonListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
 /*               //添加好友
                Intent intent = new Intent(AnonymousChatActivity.this, AddFriendActivity.class);
                AnonymousChatActivity.this.startActivity(intent);*/
            }
        });
        mToolbar.setLeftButtonListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                {
                    //添加好友
                    Intent intent = new Intent(PartyChatActivity.this, SessionFragment.class);
                    finish();
                }
            }
        });

    }
}
